/*
 * timer.c
 *
 *  Created on: Oct 9, 2011
 *      Author: mvoorsluys
 */
#include "timer.h"
#include <avr/iom16.h>
#include <avr/delay.h>


void timer_init(){
	TCCR0 = (1<<CS00)|(1<<CS01)|(1<<WGM01);
	OCR0 = 0xBC;
	TIMSK = (1<<OCIE0);// TOIE0;
}
void sleep(int ms_sleep){
}

ISR(TIMER0_COMP_vect){
	ms++;
}
